<template>
    <el-time-select class="search-time-select"
        v-model="option.value"
        :picker-options="option.pickerOptions || {}"
        :clearable="false"
        size="small"
        @blur="blurSearchItem(option, index)"
        @change="changeTimeSearchItem">
    </el-time-select>
</template>

<script>
import normalMixin from "../mixin/normalMixin";
export default {
    name: "searchTimeSelect",
    mixins: [normalMixin],
    methods: {
        /**
         * Time 组件 change 事件触发
         * @param {String} value time 组件返回数据
         */
        changeTimeSearchItem(value) {
            if (this.option.changeMethod) this.option.changeMethod(value);
        }
    }
}
</script>
